package iotwisp.school.user.command.role;

import java.util.List;

import iotwisp.base.cqrs.SPIBaseCommand;
import iotwisp.school.user.qo.RoleQO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * {@link RoleQO} {@link diance.view.organization.vo.RoleVO}
 * {@link diance.view.organization.provider.qo.RoleViewQO}
 * {@link diance.view.organization.provider.spi.mp.RoleViewSPI} Role RoleQO RoleVO
 * RoleSPI RoleViewSPI RoleService RoleViewService RoleController
 * RoleViewController
 *
 * @author yuxx
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
public class ModifyRoleSCmd extends SPIBaseCommand {

    /**
     * 角色id
     */
    private String roleId;

    /**
     * 名称
     */
    @NotBlank(message = "请输入角色姓名")
    private String name;

    private Boolean enable;

    /**
     * 要新增的权限id集
     */
    private List<String> addPermissionIds;

    /**
     * 要移除的权限id集
     */
    private List<String> removePermissionIds;
}
